//
//  UIButton+AYMButton.m
//  QuickCure
//
//  Created by 徐绩 on 16/5/7.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import "UIButton+AYMButton.h"

@implementation UIButton (AYMButton)

+(instancetype)titleName:(NSString *)title NormalColor:(UIColor *)color font:(CGFloat)font;{

    UIButton *button = [[self alloc]init];
    button.titleLabel.text = title;
    [button setTitle:title forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:font];
    [button setTitleColor:color forState:UIControlStateNormal];
    
    return button;
}

+(instancetype)titleName:(NSString *)title HighlightedColor:(UIColor *)color font:(CGFloat)font{

    UIButton *button = [[self alloc]init];
    [button setTitle:title forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:font];
    [button setTitleColor:color forState:UIControlStateHighlighted];
    
    return button;
}

@end
